import Mock from "mockjs";

export const getStudents=()=>{
  const {students} = Mock.mock({
    "students|100": [
      {
        name: "@cname()",
        age: "@integer(20, 30)",
        gender: "@string('男女', 1)",
        phone: /^1[0-9]{10}$/,
        address: "@county(true)",
        email: "@email()",
        zip: "@zip()",
      },
    ],
  })
  return students;
}
